package com.grj.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 充电异常记录表
 * @TableName ev_charging_abnormal
 */
@TableName(value ="ev_charging_abnormal")
@Data
public class EvChargingAbnormal implements Serializable {
    /**
     * 异常ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 充电记录ID（可为空）
     */
    @TableField(value = "charging_id")
    private Long chargingId;

    /**
     * 充电桩ID
     */
    @TableField(value = "charger_id")
    private Long chargerId;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 异常类型：OVER_VOLTAGE-过压，OVER_CURRENT-过流，OVER_TEMP-过温，CONNECT_ERROR-连接错误
     */
    @TableField(value = "abnormal_type")
    private String abnormalType;

    /**
     * 发生时间
     */
    @TableField(value = "occurred_time")
    private Date occurredTime;

    /**
     * 处理时间
     */
    @TableField(value = "handled_time")
    private Date handledTime;

    /**
     * 处理人ID
     */
    @TableField(value = "handler_id")
    private Long handlerId;

    /**
     * 处理结果
     */
    @TableField(value = "handle_result")
    private String handleResult;

    /**
     * 状态：UNHANDLED-未处理，HANDLED-已处理
     */
    @TableField(value = "status")
    private String status;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}